<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:c="http://java.sun.com/jsp/jstl/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.prime.com.tr/ui">
    <!-- begin: footer -->
    <div class="footer_style1">
        <ul class="clear_fix">
            <li class="widget">
                <h3>Our Latest Tweets</h3>
                <div id="widget_twitter_holder" class="clear_fix">
                    <div id="widget_twitter_wrapper">
                        <ul id="widget_twitter" >
                            <li></li>
                        </ul>
                    </div>
                    <div id="widget_twitter_prev"></div>
                    <div id="widget_twitter_next"></div>
                    <div id="twitter_icon" class="fix_png"></div>
                    <p class="twitter_follow_button"><a target="_blank" href="http://twitter.com">Follow Me</a></p>
                </div>
            </li>
            <li class="widget widget_statistics">
                <h3>Statistics</h3>
                <ul>
                    <li><a href="#"><span>
                                <h:outputText value="#{homepageController.views}">
                                    <f:convertNumber pattern="0000000"/>
                                </h:outputText>&nbsp;&raquo;
                            </span>#{msgs['homepage.views']}</a></li>
                    <li><a href="#"><span>
                                <h:outputText value="#{homepageController.usersCount}">
                                    <f:convertNumber pattern="0000000"/>
                                </h:outputText>&nbsp;&raquo;
                            </span>#{msgs['homepage.users']}</a></li>
                    <li><a href="#"><span>
                                <h:outputText value="#{homepageController.advertisementCount}">
                                    <f:convertNumber pattern="0000000"/>
                                </h:outputText>&nbsp;&raquo;
                            </span>#{msgs['homepage.advertisements']}</a></li>
                </ul>
            </li>
            <li class="widget widget_latest_advertisements">
                <h3>Latest Advertisements</h3>
                <ul>
                    <c:forEach items="#{homepageController.latestAdvertisements}" var="adv">
                        <li><a href="#" class="url">#{adv.user.username}</a> on
                        <h:outputText value="#{adv.postDate}" styleClass="date"><f:convertDateTime type="both" dateStyle="short" timeStyle="short"/></h:outputText>
                        <a target="_blank" href="detail.jsf?id=#{adv.advertisingID}">#{adv.title}</a></li>
                    </c:forEach>
                </ul>
            </li>
            <li class="last widget">
                <h3>External Links</h3>
                <ul>
                    <li><a href="http://aptech.com/">aptech.com</a></li>
                    <li><a href="http://code.google.com/">code.google.com</a></li>
                    <li><a href="http://groups.google.com">groups.google.com</a></li>
                    <li><a href="http://twitter.com">twitter.com</a></li>
                </ul>
            </li>
        </ul>
        <!-- begin: copyright_and_stuff -->
        <div class="copyright_and_stuff">
            <p>&copy; My Sweet Home 2011</p>
            <ul>
                <li>
                    <a href="./index.jsf"><span>Home</span></a>
                </li>
                <li>
                    <a href="./enquiryForm.jsf"><span>Enquiry Form</span></a>
                </li>
                <li>
                    <a href="./faqs.jsf"><span>FAQs</span></a>
                </li>
            </ul>
        </div>
        <!-- end: copyright_and_stuff -->
    </div>
</ui:composition>